package org.cuatrovientos.erp.model;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Currency {

private int id;

@NotNull(message="{currency.name.error}")
private String name;

@NotNull(message="{currency.abbreviation.error}")
private String abbreviation;

@DecimalMin(value = "0", message = "{currency.changeeuro.error}")
private float changeeuro;

@Size(min=1,message="{currency.idcountry.error}")
private int idcountry;


public Currency() {

}


public Currency(int id, String name, String abbreviation, int changeeuro, int idcountry) {
	super();
	this.id = id;
	this.name = name;
	this.abbreviation = abbreviation;
	this.changeeuro = changeeuro;
	this.idcountry = idcountry;
}

/**
 * @return the id
 */
public int getId() {
	return id;
}

/**
 * @param id the id to set
 */
public void setId(int id) {
	this.id = id;
}

/**
 * @return the name
 */
public String getName() {
	return name;
}

/**
 * @param name the name to set
 */
public void setName(String name) {
	this.name = name;
}

/**
 * @return the abbreviation
 */
public String getAbbreviation() {
	return abbreviation;
}

/**
 * @param abbreviation the abbreviation to set
 */
public void setAbbreviation(String abbreviation) {
	this.abbreviation = abbreviation;
}

/**
 * @return the changeeuro
 */
public float getChangeeuro() {
	return changeeuro;
}

/**
 * @param changeeuro the changeeuro to set
 */
public void setChangeeuro(float changeeuro) {
	this.changeeuro = changeeuro;
}

/**
 * @return the idcountry
 */
public int getIdcountry() {
	return idcountry;
}

/**
 * @param idcountry the idcountry to set
 */
public void setIdcountry(int idcountry) {
	this.idcountry = idcountry;
}

}
